
import {Button} from 'antd';


const Item = (props) => {
    const {id,status,value} = props.data;

    return (
        <div className={'item'}>
            <div>{value}</div>
            <div>
                <Button onClick={props.changeStates.bind(null,id)} className={'m-r-10'} type="primary">{status?'已':'未'}完成</Button>
                <Button className={'m-r-10'}>编辑</Button>
                <Button onClick={props.changeDelete.bind(null,id)} type="dashed">删除</Button>
            </div>
        </div>
    )
}

export default Item;